package com.ruoyi.site.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订阅计划对象 plans
 * 
 * @author chuckeytang
 * @date 2025-08-17
 */
public class Plans extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订阅计划ID */
    private Long planId;

    /** 计划名称 */
    @Excel(name = "计划名称")
    private String title;

    /** 计划描述 */
    @Excel(name = "计划描述")
    private String description;

    /** 计划图片URL */
    @Excel(name = "计划图片URL")
    private String imageUrl;

    /** 年度价格 */
    @Excel(name = "年度价格")
    private BigDecimal annualPrice;

    /** 月度价格 */
    @Excel(name = "月度价格")
    private BigDecimal monthlyPrice;

    /** 是否为推荐计划（0否，1是） */
    @Excel(name = "是否为推荐计划", readConverterExp = "0=否，1是")
    private Integer isRecommended;

    /** 记录创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 记录更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setPlanId(Long planId) 
    {
        this.planId = planId;
    }

    public Long getPlanId() 
    {
        return planId;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }

    public void setAnnualPrice(BigDecimal annualPrice) 
    {
        this.annualPrice = annualPrice;
    }

    public BigDecimal getAnnualPrice() 
    {
        return annualPrice;
    }

    public void setMonthlyPrice(BigDecimal monthlyPrice) 
    {
        this.monthlyPrice = monthlyPrice;
    }

    public BigDecimal getMonthlyPrice() 
    {
        return monthlyPrice;
    }

    public void setIsRecommended(Integer isRecommended) 
    {
        this.isRecommended = isRecommended;
    }

    public Integer getIsRecommended() 
    {
        return isRecommended;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("planId", getPlanId())
            .append("title", getTitle())
            .append("description", getDescription())
            .append("imageUrl", getImageUrl())
            .append("annualPrice", getAnnualPrice())
            .append("monthlyPrice", getMonthlyPrice())
            .append("isRecommended", getIsRecommended())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
